package webdesigntools.mtbrowser;
/*
 * 
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 * 
 */


import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class WinMenu extends JMenuBar{
	
	public WinMenu() {
		//File menu
		JMenu fileMenu = new JMenu("File"); 	
		exitItem = fileMenu.add("Exit");
		
		//options Menu 
		JMenu optionsMenu = new JMenu("Options"); 
		redetectBrowser = optionsMenu.add("Re-Detect Browsers");
		addBrowser 		= optionsMenu.add("Add Browser Manually");
		openLocalPage   = optionsMenu.add("Open Local Web Page");
		viewSource      = optionsMenu.add("View Source");
		
		//Validations Menu
		JMenu validationsMenu = new JMenu("Validations");
		//CSS Menu
		JMenu cssMenu = new JMenu("CSS");
		cssLevelOne = cssMenu.add("Validate to CSS Level 1"); 
		cssLevelTwo = cssMenu.add("Validate to CSS Level 2");
		cssLevelThree= cssMenu.add("Validate to CSS Level 3");
		cssMenu.addSeparator();
		visitValidSite = cssMenu.add("CSS Validations Site");
		validationsMenu.add(cssMenu);
		//HTML Menu 
		JMenu htmlMenu = new JMenu("HTML");
		validateTo = htmlMenu.add("Validate to ...");
		htmlFour = htmlMenu.add("HTML 4.01 Transitional");
		htmlStrict = htmlMenu.add("HTML Strict");
		xhtmlOne = htmlMenu.add("XHTML 1.0 Transitional");
		xhtmlStrict = htmlMenu.add("XHTML 1.1 Strict");
		visitHtmlVSite = htmlMenu.add("Visit HTML Validation Site");
		validationsMenu.add(htmlMenu);
		
		//Resources Menu
		JMenu resourcesMenu   = new JMenu("Resources");
		hintsAndTips = resourcesMenu.add("Hints and Tips");
		JMenu howToMenu = new JMenu("How to ...");
		convertToCss = howToMenu.add("Conver to CSS only Code");
		resourcesMenu.add(howToMenu);
		
		//Help Menu
		JMenu helpMenu = new JMenu("Help");
		aboutItem = helpMenu.add("About");
		additionalInfo = helpMenu.add("Additional Information");
		viewChangeLog = helpMenu.add("View ChangeLog");
		creditsAndThanks = helpMenu.add("Credits and Thanks");
		
		add(fileMenu); 
		add(optionsMenu); 
		add(validationsMenu);
		add(resourcesMenu);
		add(helpMenu);
	}
	
	private JMenuItem exitItem;
	private JMenuItem redetectBrowser, addBrowser, openLocalPage, viewSource;
	private JMenuItem cssLevelOne, cssLevelTwo, cssLevelThree, visitValidSite;
	private JMenuItem validateTo, htmlFour, htmlStrict, xhtmlOne, 
						xhtmlStrict, visitHtmlVSite;
	private JMenuItem hintsAndTips, convertToCss;
	private JMenuItem aboutItem, additionalInfo, viewChangeLog, creditsAndThanks;
}
